package com.xinlu.persistence;

/**
 * SfjlId entity. @author MyEclipse Persistence Tools
 */

public class SfjlId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String sfmc;

	// Constructors

	/** default constructor */
	public SfjlId() {
	}

	/** minimal constructor */
	public SfjlId(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public SfjlId(Integer id, String sfmc) {
		this.id = id;
		this.sfmc = sfmc;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getSfmc() {
		return this.sfmc;
	}

	public void setSfmc(String sfmc) {
		this.sfmc = sfmc;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SfjlId))
			return false;
		SfjlId castOther = (SfjlId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getSfmc() == castOther.getSfmc()) || (this.getSfmc() != null
						&& castOther.getSfmc() != null && this.getSfmc()
						.equals(castOther.getSfmc())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getSfmc() == null ? 0 : this.getSfmc().hashCode());
		return result;
	}

}